<?php
/**
 * Eren Framework
 * 
 * Only entrance of this system
 * 
 * @category System
 * @author Manu Soros Leu
 * @copyright manusoros@gmail.com
 */

/*
 * Init environment
 */
error_reporting(E_ALL);
ini_set('display_errors', 'On');
date_default_timezone_set('Asia/Shanghai');
//You must define the 'PROJECT_PATH',it's very important
define('PROJECT_PATH', dirname(dirname(__FILE__)) . '/');
require_once PROJECT_PATH . 'Library/Eren/AutoLoad.php';

/*
 * Init PlugIn
 */
Eren_PlugIn::regist(new PlugIn_Init);

/*
 * Start dispatch
 */
Eren_Front::getInstance()->dispatch(Config_Default::GetRouter());
exit;